package com.cn.demo.mapper;

import com.cn.demo.entity.Experiment;
import com.cn.demo.entity.ExperimentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface ExperimentMapper {
    long countByExample(ExperimentExample example);

    int deleteByExample(ExperimentExample example);

    int deleteByPrimaryKey(String curriculumExperimentId);

    int insert(Experiment record);

    int insertSelective(Experiment record);

    List<Experiment> selectByExample(ExperimentExample example);

    Experiment selectByPrimaryKey(String curriculumExperimentId);

    int updateByExampleSelective(@Param("record") Experiment record, @Param("example") ExperimentExample example);

    int updateByExample(@Param("record") Experiment record, @Param("example") ExperimentExample example);

    int updateByPrimaryKeySelective(Experiment record);

    int updateByPrimaryKey(Experiment record);

    Experiment getByExperimentIdAndStudentId(@Param("experimentId")String experimentId, @Param("studentId") String studentId);


    int delete(String curriculumExperimentId, String studentId);
}